<?php $this->_extends('_layouts/blank_layout'); ?>

<?php $this->_block('title'); ?> - 主机管理<?php $this->_endblock(); ?>
<?php $this->_block('conpno'); ?>2222<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started"> 
		<?php if ($adming>0): ?>
		
		<?php $this->_element('formview_simple',array('form'=>$form)); ?>
		<table>
		<tr><th>主机组</th><th>描述</th><th>创建时间</th><th>已连接主机数</th><th>总主机数</th><th>操作</th></tr>
		<?php foreach ($group as $s): ?>
		<tr><td><?php echo $s->groupname;?></td><td><?php echo $s->description;?></td><td><?php echo $s->datetime;?></td><td>0</td><td>2</td><td>
            <a href="<?php echo url('default::hostmanage/edit', array('group_id' => $s->id())); ?>"><img src="images/icons/edit.png"></a>
            <a href="<?php echo url('default::hostmanage/refreshgroup', array('group_id' => $s->id())); ?>"><img src="images/icons/refresh.png"></a>
            <a href="<?php echo url('default::hostmanage/del', array('group_id' => $s->id())); ?>"><img src="images/icons/del.png"></a>
            <a href="<?php echo url('default::hostlist/state', array('groupid' => $s->id())); ?>"><img src="images/icons/hosts.png"></a></td></tr>
		<?php endforeach; ?>
		<tr>
      <td colspan="6"><center>
       共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条<?php echo $pagestr; ?></center>
    </td>
    </tr>
		</table>

		<?php else: ?>
	
	<center><h2>暂无可管理主机组。</h2></center>
	
		<?php endif; ?>
	
	</div>

<?php $this->_endblock('contents'); ?>